package edu.whu.assignment5.enums;

import lombok.Getter;

@Getter
public enum ReturnEnums {
    TestError(10086,"测试错误返回"),
    ParamError(10001,"参数接收错误"),
    DataNotFound(10002,"未在数据库中找到数据"),
    SameNameUser(10003,"有同名用户"),
    DataSaveError(10004,"数据存储错误"),
    PasswordError(10005,"密码错误，请重新输入"),
    LessBalance(10006,"用户余额较少，请充值"),
    NoProduct(10007,"没有对应的货物"),
    SameProductExist(10008,"有同名货物存在"),
    ;

    private int status;
    private String message;

    ReturnEnums(int status, String message) {
        this.status = status;
        this.message = message;
    }
}
